﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="EDP.Application.Web.Application._default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <script type="text/javascript">
        document.onkeydown = function (e) {
            if (!e) e = window.event;
            if ((e.keyCode || e.which) == 13) {
                F.f_disable('grid_List_ctl00_btn_query');
                __doPostBack('grid_List$ctl00$btn_query', '');
            }
        }
    </script>
    <style type="text/css">
        .x-column-header {
            text-align: center;
        }
    </style>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager" AutoSizePanelID="grid_List" runat="server" />
        <f:Grid ID="grid_List" runat="server" Title="应用列表" Margin="10" EnableCheckBoxSelect="false"
            DataKeyNames="ID" SortField="Numbers" SortDirection="asc"
            OnPreRowDataBound="grid_List_PreRowDataBound" OnRowCommand="grid_List_RowCommand" OnSort="grid_List_Sort"
            OnPageIndexChange="grid_List_PageIndexChange">
            <Toolbars>
                <f:Toolbar runat="server" ToolbarAlign="Right" QueryToolbar="true">
                    <Items>
                        <f:TextBox ID="tb1" runat="server" Margin="0" Width="240" QueryName="NumbersNameKeywrod" EmptyText="应用编号/应用名称" />
                        <f:Button ID="btn_query" runat="server" Text=" 查 询 " Icon="SystemSearch" Margin="0 0 0 10" OnClick="QueryClick" EnablePermission="false" />
                        <f:ToolbarFill runat="server" />
                        <f:Button ID="btn_add" runat="server" Text="新增应用" Icon="Add" Margin="0 10 0 0" EnablePostBack="false" />
                        <f:Button ID="btn_more" runat="server" EnablePermission="false" Text="更多...">
                            <Menu runat="server" Margin="0">
                                <f:MenuButton ID="btn_cache" runat="server" Margin="0" Text="重置缓存" ConfirmTitle="重置缓存" ConfirmText="是否重置缓存？" ConfirmTarget="Self" ConfirmIcon="Question" OnClick="btn_cache_Click" />
                            </Menu>
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Columns>
                <f:BoundField DataField="Name" Width="200" HeaderText="应用名称" />
                <f:BoundField DataField="Numbers" Width="150" HeaderText="应用编号" />
                <f:BoundField DataField="CreateUserName" Width="100" HeaderText="创建人" />
                <f:BoundField DataField="CreateTime" Width="140" HeaderText="创建时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" TextAlign="center" />
                <f:BoundField DataField="Remarks" ExpandUnusedSpace="true" HeaderText="描述" />
                <f:LinkButtonField ColumnID="lb_enable" Width="75" CommandName="enable" EnableLock="true" HeaderText="启用状态"
                    CommandTitle="设置应用启用状态" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
                <f:LinkButtonField ColumnID="lb_edit" Width="30" CommandName="edit" EnableLock="true" CommandTitle="编辑应用" Icon="TableEdit" TextAlign="center" ToolTip="编辑" />
                <f:LinkButtonField ColumnID="lb_delete" Width="30" CommandName="delete" EnableLock="true" CommandTitle="删除应用" ToolTip="删除" Icon="Delete"
                    ConfirmTitle="删除应用" ConfirmText="是否删除该应用？" ConfirmTarget="Self" ConfirmIcon="Question" TextAlign="center" />
            </Columns>
        </f:Grid>
        <f:Window ID="win_edit" runat="server" OnClose="win_edit_Close" />
    </form>
</body>
</html>
